package com.zero.activiti.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;
import lombok.ToString;

import java.util.Date;

@TableName("sys_user")
@Data
@ToString
public class SysUser extends Model<SysUser> {
    @TableId(value="id", type= IdType.AUTO)
    private String id;

    private String username;

    private String password;

    private Integer age;

    private String email;

    private String photo;

    @TableField("real_name")
    private String realName;

    @TableField("create_by")
    private String createBy;

    @TableField("update_by")
    private String updateBy;

    @TableField("create_date")
    private Date createDate;

    @TableField("update_date")
    private Date updateDate;

    /**
     * 0可用1封禁
     */
    @TableField("del_flag")
    private Byte delFlag;
}